import { createRouter, createWebHistory } from 'vue-router';

const routes = [
  {
    path: '/',
    name: 'Home',
    component: () => import('../views/Home.vue')
  },
  {
    path: '/farm',
    name: 'Farm',
    component: () => import('../views/Farm.vue')
  },
  // 社交系统路由
  {
    path: '/friends',
    name: 'Friends',
    component: () => import('../views/social/Friends.vue')
  },
  {
    path: '/market',
    name: 'Market',
    component: () => import('../views/social/Market.vue')
  },
  {
    path: '/collaboration',
    name: 'Collaboration',
    component: () => import('../views/social/Collaboration.vue')
  },
  // 季节系统路由
  {
    path: '/season',
    name: 'Season',
    component: () => import('../views/season/SeasonInfo.vue')
  },
  {
    path: '/events',
    name: 'Events',
    component: () => import('../views/season/Events.vue')
  },
  // 宠物系统路由
  {
    path: '/pets',
    name: 'Pets',
    component: () => import('../views/pets/PetList.vue')
  },
  {
    path: '/pet/:id',
    name: 'PetDetail',
    component: () => import('../views/pets/PetDetail.vue')
  },
  // 小游戏系统路由
  {
    path: '/games',
    name: 'Games',
    component: () => import('../views/games/GameList.vue')
  },
  {
    path: '/game/:id',
    name: 'GamePlay',
    component: () => import('../views/games/GamePlay.vue')
  },
  // 农产品加工系统路由
  {
    path: '/processing',
    name: 'Processing',
    component: () => import('../views/processing/ProcessingCenter.vue')
  },
  {
    path: '/recipes',
    name: 'Recipes',
    component: () => import('../views/processing/Recipes.vue')
  },
  // 任务系统路由
  {
    path: '/quests',
    name: 'Quests',
    component: () => import('../views/quests/QuestList.vue')
  },
  {
    path: '/achievements',
    name: 'Achievements',
    component: () => import('../views/quests/Achievements.vue')
  }
];

const router = createRouter({
  history: createWebHistory(),
  routes
});

export default router; 